/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.palette.swing;

/**
 *
 * @author Mr.Sam
 */
import javax.swing.*;
import fr.ove.palette.*;
import fr.ove.palette.swing.*;

/**
* The palette containing the trigonometric functions.
*
* @author © 1999 DIRAT Laurent
* @version 1.0  19/09/1999
*/
public class TrigoPalette extends Palette {
    /**
    * The constructor.
    */
    public TrigoPalette() {
        super(PaletteLayout.ROW_CONSTRAINT, 4);
        addButtonToPalette(new JPaletteButton("cos(?)"), new PaletteInfo("cos()", (byte) 4));
        addButtonToPalette(new JPaletteButton("acos(?)"), new PaletteInfo("acos()", (byte) 5));
        addButtonToPalette(new JPaletteButton("cosh(?)"), new PaletteInfo("cosh()", (byte) 5));
        addButtonToPalette(new JPaletteButton("acosh(?)"), new PaletteInfo("acosh()", (byte) 6));

        addButtonToPalette(new JPaletteButton("sin(?)"), new PaletteInfo("sin()", (byte) 4));
        addButtonToPalette(new JPaletteButton("asin(?)"), new PaletteInfo("asin()", (byte) 5));
        addButtonToPalette(new JPaletteButton("sinh(?)"), new PaletteInfo("sinh()", (byte) 5));
        addButtonToPalette(new JPaletteButton("asinh(?)"), new PaletteInfo("asinh()", (byte) 6));

        addButtonToPalette(new JPaletteButton("tan(?)"), new PaletteInfo("tan()", (byte) 4));
        addButtonToPalette(new JPaletteButton("atan(?)"), new PaletteInfo("atan()", (byte) 5));
        addButtonToPalette(new JPaletteButton("tanh(?)"), new PaletteInfo("tanh()", (byte) 5));
        addButtonToPalette(new JPaletteButton("atanh(?)"), new PaletteInfo("atanh()", (byte) 6));

        addButtonToPalette(new JPaletteButton("cot(?)"), new PaletteInfo("cot()", (byte) 4));
        addButtonToPalette(new JPaletteButton("acot(?)"), new PaletteInfo("acot()", (byte) 5));
        addButtonToPalette(new JPaletteButton("coth(?)"), new PaletteInfo("coth()", (byte) 5));
        addButtonToPalette(new JPaletteButton("acoth(?)"), new PaletteInfo("acoth()", (byte) 6));

        addButtonToPalette(new JPaletteButton("sec(?)"), new PaletteInfo("sec()", (byte) 4));
        addButtonToPalette(new JPaletteButton("asec(?)"), new PaletteInfo("asec()", (byte) 5));
        addButtonToPalette(new JPaletteButton("sech(?)"), new PaletteInfo("sech()", (byte) 5));
        addButtonToPalette(new JPaletteButton("asech(?)"), new PaletteInfo("asech()", (byte) 6));

        addButtonToPalette(new JPaletteButton("csc(?)"), new PaletteInfo("csc()", (byte) 4));
        addButtonToPalette(new JPaletteButton("acsc(?)"), new PaletteInfo("acsc()", (byte) 5));
        addButtonToPalette(new JPaletteButton("csch(?)"), new PaletteInfo("csch()", (byte) 5));
        addButtonToPalette(new JPaletteButton("acsch(?)"), new PaletteInfo("acsch()", (byte) 6));
    }
}